<template>
  <router-view #default="{ Component, route }">
    <transition name="fade" mode="out-in" appear>
      <Suspense>
        <component :is="Component" v-if="route.meta.ignoreCache" />
        <keep-alive v-else :include="cacheList">
          <component :is="Component" />
        </keep-alive>
      </Suspense>
    </transition>
  </router-view>
</template>

<script lang="ts" setup>
const cacheList = computed(() => []);
</script>

<style scoped lang="less"></style>
